import { Navigate } from 'react-router-dom';
import Home from '@/views/Home';
import TodoList from '@/views/Tests/TodoList';
import { Error404 } from '@/views/Error/404';

export const defaultRoutes = [
  {
    path: '/todoList',
    id: 'todoList',
    element: <TodoList />,
  },
];

export const baseRoutes = [
  {
    path: '/',
    id: 'home',
    element: <Home />,
  },
  {
    path: '/index',
    id: 'index',
    element: <Navigate to='/' />,
  },
  {
    path: '*',
    element: <Error404 />,
  },
  ...defaultRoutes,
];
